using UnityEngine;

namespace IQIGame.Onigao.GamePlay
{
    public class SmallPetFlyMoveBehavior : SmallPetBaseMoveBehavior
    {
        public override void Init()
        {
            entity.transform.position = entity.owner.transform.position;
        }

        public override void OnUpdate(float dt)
        {
        }

        public override uint MaxStore => 4;
        public override void OnReset()
        {
            base.OnReset();
            entity = null;
        }

        public override void OnOwnerMove(Vector3 pos, float speedPower)
        {
            entity.transform.forward = entity.owner.transform.forward;
            entity.transform.position = entity.owner.transform.position;
        }
    }
}